<?php
/** Model for testing codes **/
class M_test extends CI_Model {
	
	function get_user($id){
		$q = $this->db->select('user_id, student_profiles.course_id, id_no, firstname, lastname, middlename, courses.course_id')->from('student_profiles')->join('courses', 'courses.course_id = student_profiles.course_id', 'left')->where('user_id', $id)->get();
		return $q->row();
	}	
}

?>